package com.yanqu.xiuxian.gameserver.tripletown.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 三消-消除结果
 */
public class EliminateResult {

    private int ret = 0;                                                                // 错误码
    private List<EliminateRoundResult> eliminateRoundResultList = new ArrayList<>();    // 每轮的结果
    private int guideIndex = -1;                                                        // 引导位置
    private List<Integer> orderIdList = new ArrayList<>();                              // 后续订单列表
    private Order curOrder = null;                                                      // 当前订单

    public int getRet() {
        return ret;
    }

    public void setRet(int ret) {
        this.ret = ret;
    }

    public List<EliminateRoundResult> getEliminateRoundResultList() {
        return eliminateRoundResultList;
    }

    public void setEliminateRoundResultList(List<EliminateRoundResult> eliminateRoundResultList) {
        this.eliminateRoundResultList = eliminateRoundResultList;
    }

    public int getGuideIndex() {
        return guideIndex;
    }

    public void setGuideIndex(int guideIndex) {
        this.guideIndex = guideIndex;
    }

    public List<Integer> getOrderIdList() {
        return orderIdList;
    }

    public void setOrderIdList(List<Integer> orderIdList) {
        this.orderIdList = orderIdList;
    }

    public Order getCurOrder() {
        return curOrder;
    }

    public void setCurOrder(Order curOrder) {
        this.curOrder = curOrder;
    }

    public void addEliminateRoundResult(EliminateRoundResult eliminateRoundResult) {
        this.eliminateRoundResultList.add(eliminateRoundResult);
    }

    public void addOrderId(int orderId) {
        this.orderIdList.add(orderId);
    }

    public EliminateRoundResult getLastEliminateRoundResult() {
        return this.eliminateRoundResultList.get(eliminateRoundResultList.size() - 1);
    }

}
